import request from '@/utils/request'

// 售货机列表
export const getEquipType = (params) => {
  return request({
    url: '/api/vm-service/vmType/search',
    params
  })
}

// 新建
export const postNewSure = (data) => {
  return request({
    url: '/api/vm-service/vmType',
    method: 'POST',
    data
  })
}

// 修改

export const xiugaiSure = (data, id) => {
  return request({
    url: '/api/vm-service/vmType/' + id,
    method: 'put',
    data
  })
}
